#ifndef _MW_CORE_H_INCLUDED_
#define _MW_CORE_H_INCLUDED_

#define  MW_OK          0
#define  MW_ERROR      -1
#define  MW_AGAIN      -2
#define  MW_BUSY       -3
#define  MW_DONE       -4
#define  MW_DECLINED   -5
#define  MW_ABORT      -6

#define mw_abs(value)       (((value) >= 0) ? (value) : - (value))
#define mw_max(val1, val2)  ((val1 < val2) ? (val2) : (val1))
#define mw_min(val1, val2)  ((val1 > val2) ? (val2) : (val1))

#endif /* _MW_CORE_H_INCLUDED_ */
